/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By 深圳中科鑫智科技有限公司
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.app.service.product;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.cereshop.commons.domain.product.CereSkuName;
import com.shop.cereshop.commons.domain.product.bo.CereSkuNameBo;
import com.shop.cereshop.commons.domain.product.vo.CereSkuNameVo;
import com.shop.cereshop.commons.domain.shop.CereShopGroup;
import com.shop.cereshop.commons.domain.shop.bo.CereShopGroupBo;
import com.shop.cereshop.commons.domain.shop.vo.CereShopGroupVo;
import org.assertj.core.util.Lists;
import org.springframework.beans.BeanUtils;

import java.util.List;

public interface CereSkuNameService extends IService<CereSkuName> {

    /**
     * 条件构造器
     */
    LambdaQueryWrapper<CereSkuName> buildLambdaQueryWrapper(CereSkuNameBo bo);

    /**
     * 条件查询
     */
    List<CereSkuNameVo> queryList(CereSkuNameBo bo);

    /**
     * 根据规格id查询sku参数
     */
    List<CereSkuNameVo> queryListBySkuId(Long skuId);

    /**
     * 根据规格id查询sku参数
     */
    List<CereSkuNameVo> queryListBySkuId(List<Long> skuIds);

    /**
     * 转换函数
     */
    List<CereSkuNameVo> generate(List<CereSkuName> list);

    /**
     * 转换函数
     */
    CereSkuNameVo generate(CereSkuName cereSkuName);

}
